package com.narbeshuber.tablet.lasalara.fragment;

import android.content.Context;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.ScrollView;

public class LasalaraScoller extends ScrollView{
	
	GestureDetector gestureDetector;
	
	public LasalaraScoller(Context context) {
		super(context);
	}
	
	public LasalaraScoller(Context context, AttributeSet attributeSet){
		super(context, attributeSet);
	}

	@Override
    public boolean dispatchTouchEvent(MotionEvent ev){
        super.dispatchTouchEvent(ev);    
        return gestureDetector.onTouchEvent(ev); 
    }

	public GestureDetector getGestureDetector() {
		return gestureDetector;
	}

	public void setGestureDetector(GestureDetector gestureDetector) {
		this.gestureDetector = gestureDetector;
	}
	
}
